home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / locale / nsIFontPackageHandler.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  114 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIFontPackageHandler.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIFontPackageHandler_h__
  6. #define __gen_nsIFontPackageHandler_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIFontPackageHandler */
  19. #define NS_IFONTPACKAGEHANDLER_IID_STR "6712fdd1-f978-11d4-a144-005004832142"
  20.  
  21. #define NS_IFONTPACKAGEHANDLER_IID \
  22.   {0x6712fdd1, 0xf978, 0x11d4, \
  23.     { 0xa1, 0x44, 0x00, 0x50, 0x04, 0x83, 0x21, 0x42 }}
  24.  
  25. class NS_NO_VTABLE nsIFontPackageHandler : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFONTPACKAGEHANDLER_IID)
  29.  
  30.   /**
  31.     * Set the font package handler for Gecko
  32.     * @param aFontPackID a font package ID.
  33.     * The id have the following naming convenation 
  34.     *  name_space:name
  35.     * we currently define one name space
  36.     *    lang - a font package for a particular language group
  37.     * and udnder the lang name space, we use the language code to identify
  38.     * the package, below are the defined packages
  39.     *   ja - Japanese font package ("lang:ja")
  40.     *   ko - Korean font package ("lang:ko")
  41.     *   zh-TW - Traditional Chinese font package ("lang:zh-TW")
  42.     *   zh-CN - Simplified Chinese font package ("lang:zh-CN")
  43.     * In the future, we may want to add
  44.     *    ar - Arabic font packges ("lang:ar")
  45.     *    he - Hebrew font packages ("lang:he")
  46.     *    th - Thai font package ("lang:th")
  47.     * other name space are reserved for now.
  48.     * After the installation, the font package handler should call
  49.     * nsIFontPackageService::FontPackageHandled and pass back the aFontPackID
  50.     * 
  51.     * This interface sould be implemented by the embedding application
  52.     * In the other hand the nsIFontPackageProxy is internal to Gecko
  53.     */
  54.   /* void NeedFontPackage (in string aFontPackID); */
  55.   NS_IMETHOD NeedFontPackage(const char *aFontPackID) = 0;
  56.  
  57. };
  58.  
  59. /* Use this macro when declaring classes that implement this interface. */
  60. #define NS_DECL_NSIFONTPACKAGEHANDLER \
  61.   NS_IMETHOD NeedFontPackage(const char *aFontPackID); 
  62.  
  63. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  64. #define NS_FORWARD_NSIFONTPACKAGEHANDLER(_to) \
  65.   NS_IMETHOD NeedFontPackage(const char *aFontPackID) { return _to NeedFontPackage(aFontPackID); } 
  66.  
  67. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  68. #define NS_FORWARD_SAFE_NSIFONTPACKAGEHANDLER(_to) \
  69.   NS_IMETHOD NeedFontPackage(const char *aFontPackID) { return !_to ? NS_ERROR_NULL_POINTER : _to->NeedFontPackage(aFontPackID); } 
  70.  
  71. #if 0
  72. /* Use the code below as a template for the implementation class for this interface. */
  73.  
  74. /* Header file */
  75. class nsFontPackageHandler : public nsIFontPackageHandler
  76. {
  77. public:
  78.   NS_DECL_ISUPPORTS
  79.   NS_DECL_NSIFONTPACKAGEHANDLER
  80.  
  81.   nsFontPackageHandler();
  82.  
  83. private:
  84.   ~nsFontPackageHandler();
  85.  
  86. protected:
  87.   /* additional members */
  88. };
  89.  
  90. /* Implementation file */
  91. NS_IMPL_ISUPPORTS1(nsFontPackageHandler, nsIFontPackageHandler)
  92.  
  93. nsFontPackageHandler::nsFontPackageHandler()
  94. {
  95.   /* member initializers and constructor code */
  96. }
  97.  
  98. nsFontPackageHandler::~nsFontPackageHandler()
  99. {
  100.   /* destructor code */
  101. }
  102.  
  103. /* void NeedFontPackage (in string aFontPackID); */
  104. NS_IMETHODIMP nsFontPackageHandler::NeedFontPackage(const char *aFontPackID)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* End of implementation class template. */
  110. #endif
  111.  
  112.  
  113. #endif /* __gen_nsIFontPackageHandler_h__ */
  114.